﻿
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using static Ccteg.Common.Enums.CommonEnum;

namespace Ccteg.Common
{
    /// <summary>
    /// 图标实体类
    /// </summary>
    public class Management_data
    {
        /// <summary>
        /// 自增Id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }


        /// <summary>
        /// 编码
        /// </summary>

        [Column(TypeName = "nvarchar(50)")]
        public string Code { get; set; }

        /// <summary>
        /// 父级Code
        /// </summary>
        [Column(TypeName = "nvarchar(100)")]
        public string ParentCode { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [Column(TypeName = "varchar(100)")]
        public string Name { get; set; }
        /// <summary>
        /// 父级Id
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int NumOrder { get; set; }
        /// <summary>
        /// 备注说明
        /// </summary>
        [Column(TypeName = "varchar(255)")]
        public string Remark { get; set; }
        /// <summary>
        /// Other其他（备用)
        /// </summary>
        [Column(TypeName = "varchar(255)")]
        public string Other { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedOn { get; set; }


        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifiedOn { get; set; }



        /// <summary>
        /// 创建人
        /// </summary>
        [Column(TypeName = "varchar(20)")]
        public string CreatedBy { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [Column(TypeName = "varchar(20)")]
        public string ModifiedBy { get; set; }


        /// <summary>
        ///是否删除（本系统逻辑删除) true为删除
        /// </summary>

        public bool Deleted { get; set; }

       
      
    }
}
